<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href='/meirongtest/Public/Member/css/global.css' rel='stylesheet' type='text/css' />
<link href='/meirongtest/Public/Member/css/main.css' rel='stylesheet' type='text/css' />
<link href='/meirongtest/Public/Member/css/mall.css' rel='stylesheet' type='text/css' />

<script type='text/javascript' src='/meirongtest/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/meirongtest/Public/Member/js/global.js'></script>
<link href='/meirongtest/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<!--[if lte IE 9]><script src="__PUBIC__/Member/js/jquery.watermark-1.3.js"></script><![endif]-->
<script type='text/javascript' src='/meirongtest/Public/Member/js/wechat.js'></script>
<script type="text/javascript" src="/meirongtest/Public/Member/js/operamasks-ui.min.js"></script>

<!-- CSS -->
<link href='/meirongtest/Public/Member/css/survey.css' rel='stylesheet' type='text/css' />

<!-- JS -->
<script type="text/javascript" src="/meirongtest/Public/Member/js/survey.js"></script>

<!-- 日历插件 -->
<link href='/meirongtest/Public/Member/css/daterangepicker.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/meirongtest/Public/Member/js/moment.min.js'></script>
<script type='text/javascript' src='/meirongtest/Public/Member/js/daterangepicker.js'></script>

<!-- 编辑器插件 -->
<!-- <link rel="stylesheet" type="text/css" href="/meirongtest/Public/Member/css/editor.css">
<script type="text/javascript" charset="utf-8" src="/meirongtest/Public/Member/js/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/meirongtest/Public/Member/js/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/meirongtest/Public/Member/js/zh-cn.js"></script> -->

<script type='text/javascript'>
var web_domain='/meirongtest';
var static_domain='/meirongtest';
var img_domain='/meirongtest';
var _PUBLIC_ = '/meirongtest/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
var domain={
        www:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        static:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        img:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        file:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        kf:'<?php echo C('WEB_ABSOLUTE_URL');?>'
};
</script>

	<link href='/meirongtest/Public/Member/js/plugin/lean-modal/style.css' rel='stylesheet' type='text/css' />
	<script type='text/javascript' src='/meirongtest/Public/Member/js/plugin/lean-modal/lean-modal.min.js'></script>
	<script language="javascript">
	     $(document).ready(survey_obj.survey_set_init);
	</script>

</head>

<body>
	
	
	<div id="iframe_page">
		<div class="iframe_content">
			<div class="r_nav">
				<ul>
					<!-- <li class="<?php if((ACTION_NAME) == "index"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/index');?>">首次关注设置</a></li>
					<li class="<?php if((ACTION_NAME) == "keyword"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/keyword');?>">关键词回复</a></li>
					 -->
					<li class="<?php if((ACTION_NAME) == "survey"): ?>cur<?php endif; ?>"><a href="<?php echo U('Survey/survey');?>">问卷调查</a></li>
					<li class="<?php if((ACTION_NAME) == "result"): ?>cur<?php endif; ?>"><a href="<?php echo U('Result/result');?>">调查结果</a></li>
					<li class="<?php if((ACTION_NAME) == "surveyer"): ?>cur<?php endif; ?>"><a href="<?php echo U('Surveyer/surveyer');?>">调查人员</a></li>
					
				</ul>
			</div>

		
		

			
<div id="survey_list" class="r_con_wrap">
    <div class="control_btn"><a href="#add_topic" class="btn_green btn_w_120">添加问题</a><a href="<?php echo U('survey/survey');?>" class="btn_gray">返回</a></div>
	<!-- <div class="tips"><strong>问卷主题：</strong> <?php echo ($title); ?></div> -->
    <div class="clear"></div>
    	<?php if(is_array($questionList)): foreach($questionList as $k=>$list): ?><div class="topic">
    	<div class="title" Data='<?php echo ($list["question_json"]); ?>'>
			<strong><?php echo ($k+1); ?>、</strong><?php echo ($list["content"]); ?>&nbsp;
			<!-- 	<?php if($list["imgpath"] != null): ?><img alt="" src="<?php echo ($list["imgpath"]); ?>" width="20px" height="20px" style="position:absolute;margin-top:5px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php endif; ?>   -->
			<a href="#survey_add_answer" title="添加选项"><img src="/meirongtest/Public/Member/images/ico/add.gif" align="absmiddle" /></a>
            <a href="#survey_mod_list" title="修改问题"><img src="/meirongtest/Public/Member/images/ico/mod.gif" align="absmiddle" /></a>
            <a href="#survey_del_list" url="<?php echo U('Survey/questionDel');?>"><img src="/meirongtest/Public/Member/images/ico/del.gif" align="absmiddle" /></a>
        </div>
        <div class="answer">
        	<?php if(is_array($list["options"])): foreach($list["options"] as $kk=>$options): ?><div class="list" DataAnswer='<?php echo ($options["options_json"]); ?>'>
            	<div class="t" style="position:relative"><?php echo (chr($kk+65)); ?>、<?php echo ($options["content"]); ?>
            	<?php if($options["imgpath"] != null): ?>&nbsp;&nbsp;<img alt="" src="<?php echo ($options["imgpath"]); ?>" width="20px" height="20px" style="position:absolute;margin-top:5px"><?php endif; ?>
            	</div>
                <div class="opt">
                    <a href="#survey_mod_answer"><img src="/meirongtest/Public/Member/images/ico/mod.gif" /></a>
                    <a href="#survey_del_answer" uri="<?php echo U('Survey/answerDel');?>"><img src="/meirongtest/Public/Member/images/ico/del.gif" /></a>
                </div>
            </div><?php endforeach; endif; ?>
        </div>
        
        <div class="clear"></div>
    </div><?php endforeach; endif; ?>
</div>

	<div id="survey_list_add" class="lean-modal lean-modal-form">
		<div class="h">新增问题<a class="modal_close" href="#"></a></div>
		<form class="form" id="survey_add_form">
			<div class="rows">
				<label>问题：</label>
				<span class="input">
					<input name="Title" value="" type="text" class="form_input" size="26" maxlength="100" notnull> <font class="fc_red">*</font>
				</span>
				<div class="clear"></div>
			</div>
			<div class="rows">
				<label>题目类型：</label>
				<span class="input"><input type="checkbox" name="MultiSelect" value="1">多选</span>
				<div class="clear"></div>
			</div>
		<!-- 	<div class="rows">
				<label>图片：</label>
				<span class="input">
					<div class="file_upload"><input name="FileUpload" id="ImgPathFileUpload" type="file" /></div>
					<div class="img_detail" id="ImgPathDetail"></div>
					<div class="clear"></div>
					<div class="big_size_tips">大图尺寸建议：640*360px</div>
	            </span>
				<div class="clear"></div>
			</div> -->
			<div class="rows">
				<label></label>
				<span class="submit"><input type="submit" value="确定提交" name="submit_btn"></span>
				<div class="clear"></div>
			</div>
			<input type="hidden" name="ImgPath" value="" />
			<input type="hidden" name="do_action" value="<?php echo U('Survey/questionAdd');?>">
			<input type="hidden" name="ajax" value="1">
			<input type="hidden" name="SId" value="<?php echo ($sid); ?>" />
	    </form>
	</div>

	<div id="survey_list_mod" class="lean-modal lean-modal-form">
		<div class="h">修改问题<a class="modal_close" href="#"></a></div>
		<form class="form" id="survey_mod_form">
			<div class="rows">
				<label>问题：</label>
				<span class="input">
					<input name="Title" value="" type="text" class="form_input" size="26" maxlength="100" notnull> <font class="fc_red">*</font>
				</span>
				<div class="clear"></div>
			</div>
			<div class="rows">
				<label>题目类型：</label>
				<span class="input"><input type="checkbox" name="MultiSelect" value="1">多选</span>
				<div class="clear"></div>
			</div>
		<!-- 	<div class="rows">
				<label>图片：</label>
				<span class="input">
	            	<div class="file_upload"><input name="FileUpload" id="ImgPathFileUploadMod" type="file" /></div>
	                <div class="img_detail" id="ImgPathDetailMod"></div>
	                <div class="clear"></div>
	                <div class="big_size_tips">大图尺寸建议：640*360px</div>
	            </span>
				<div class="clear"></div>
			</div> -->
			<div class="rows">
				<label></label>
				<span class="submit"><input type="submit" value="确定提交" name="submit_btn"></span>
				<div class="clear"></div>
			</div>
			<input type="hidden" name="ImgPath" value="" />
			<input type="hidden" name="do_action" value="<?php echo U('Survey/questionAdd');?>">
			<input type="hidden" name="ajax" value="1">
			<input type="hidden" name="LId" value="" />
	    </form>
	</div>

	<div id="survey_answer_add" class="lean-modal lean-modal-form">
		<div class="h">新增问题选项<a class="modal_close" href="#"></a></div>
		<form class="form" id="survey_answer_add_form">
			<div class="rows">
				<label>问题：</label>
				<span class="input" id="SurveyListTitle"></span>
				<div class="clear"></div>
			</div>
			<div class="rows">
				<label>选项：</label>
				<span class="input"><input name="Answer" value="" type="text" class="form_input" size="26" maxlength="100" notnull> <font class="fc_red">*</font></span>
				<div class="clear"></div>
			</div>
			<!-- <div class="rows">
				<label>图片：</label>
				<span class="input">
					<div class="file_upload"><input name="AnswerFileUpload" id="AnswerImgPathFileUpload" type="file" /></div>
					<div class="img_detail" id="AnswerImgPathDetail"></div>
					<div class="clear"></div>
					<div class="big_size_tips">大图尺寸建议：640*360px</div>
	            </span>
				<div class="clear"></div>
			</div> -->
			<div class="rows">
				<label></label>
				<span class="submit"><input type="submit" value="确定提交" name="submit_btn"></span>
				<div class="clear"></div>
			</div>
		<!-- 	<input type="hidden" name="ImgPath" value="" /> -->
			<input type="hidden" name="do_action" value="<?php echo U('Survey/answerAdd');?>">
			<input type="hidden" name="ajax" value="1">
			<!-- <input type="hidden" name="SId" value="" /> -->
			<input type="hidden" name="LId" value="" />
	    </form>
	</div>

<div id="survey_answer_mod" class="lean-modal lean-modal-form">
	<div class="h">修改问题选项<a class="modal_close" href="#"></a></div>
	<form class="form" id="survey_answer_mod_form">
		<div class="rows">
			<label>问题：</label>
			<span class="input" id="SurveyListTitleMod"></span>
			<div class="clear"></div>
		</div>
		<div class="rows">
			<label>选项：</label>
			<span class="input"><input name="Answer" value="" type="text" class="form_input" size="26" maxlength="100" notnull> <font class="fc_red">*</font></span>
			<div class="clear"></div>
		</div>
		<!-- <div class="rows">
			<label>图片：</label>
			<span class="input">
				<div class="file_upload"><input name="AnswerFileUpload" id="AnswerModImgPathFileUpload" type="file" /></div>
				<div class="img_detail" id="AnswerModImgPathDetail"></div>
				<div class="clear"></div>
				<div class="big_size_tips">大图尺寸建议：640*360px</div>
            </span>
			<div class="clear"></div>
		</div> -->
		<div class="rows">
			<label></label>
			<span class="submit"><input type="submit" value="确定提交" name="submit_btn"></span>
			<div class="clear"></div>
		</div>
		<!-- <input type="hidden" name="ImgPath" value="" /> -->
		<input type="hidden" name="do_action" value="<?php echo U('Survey/answerAdd');?>">
		<input type="hidden" name="ajax" value="1">
	<!-- 	<input type="hidden" name="SId" value="" /> -->
		<input type="hidden" name="LId" value="" />
		<input type="hidden" name="AId" value="" />
    </form>
</div>
	<div id="turn_page">
		<?php echo ($page); ?>
	</div>

			
			</div>
			</div>
</body>
</html>